package com.changgou.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = "com.changgou.goods.feign")//开启feign来远程调用goods微服务,指定feign接口的位置，
public class SearchApplication {
    public static void main(String[] args) {

        //解决报错没有这个bean被创建 Error creating bean with name ‘requestMappingHandlerAdapter’ defined in class path resource
        System.setProperty("es.set.netty.runtime.available.processors","false");

        SpringApplication.run(SearchApplication.class,args);
    }
}
